namespace mplat {
    export interface IShowModalInfo {
        title: string;
        content: string;
        showCancel?: boolean;
        cancelText?: string;
        cancelColor?: string;
        confirmText?: string;
        confirmColor?: string;
        success?: Function;
        fail?: Function;
        complete?: Function;
    }

    export interface IUiInterface {
        showModal(info: IShowModalInfo): void;
        showLoading(title: string, mask?: boolean): void;
        hideLoading(): void;
        showToast(obj:_showToastObject): void;
        hideToast(): void;
    }

    export class BaseUiInterface implements IUiInterface {
        showModal(info: IShowModalInfo) {
        }

        showLoading(title: string, mask?: boolean): void {

        }
        hideLoading(): void {

        }
        showToast(obj:_showToastObject): void {

        }
        hideToast(): void {

        }

    }
}